[POWERPC][XEN] Hide builtin dom0 args from Xen.
authorHollis Blanchard <hollisb@us.ibm.com>
Wed, 4 Oct 2006 22:27:16 +0000 (17:27 -0500)
committerHollis Blanchard <hollisb@us.ibm.com>
Wed, 4 Oct 2006 22:27:16 +0000 (17:27 -0500)
Signed-off-by: Amos Waterland <apw@us.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %1Bu%9B%25%22%CD%F0%93T%DC%A6%D8%FD%E2%7C%BDk%03%BA%B9

xen/arch/powerpc/boot_of.c

index 623944b557876e2ec107e1b60f60f2c0b6bc9197..c81ca2b9ebd9eb7f8d034ef0e56be96c512e14c6 100644 (file)
@@ -1022,6 +1022,8 @@ static void * __init boot_of_module(ulong r3, ulong r4, multiboot_info_t *mbi)
               mods[mod].mod_start, mods[mod].mod_end);
     p = strstr((char *)(ulong)mbi->cmdline, sepr);
     if (p != NULL) {
+        /* Xen proper should never know about the dom0 args.  */
+        *(char *)p = '\0';
         p += sizeof (sepr) - 1;
         mods[mod].string = (u32)(ulong)p;
         of_printf("%s: dom0 mod string: %s\n", __func__, p);